<?php

namespace App\Models;

use \Illuminate\Database\Eloquent\Model;

class Cart extends Model
{
    protected $table = 'tb_cart';// 表名
    public $fillable = ['goods_id', 'num', 'user_id', 'time', 'goods_match_id', 'id','is_checked'];
    public $timestamps = false;// 关闭后  create方法不会修改 created_at updated_at 的值

    public $primaryKey = 'id';//主键默认是id  不是的话需要配置
}